export const typeMap: { [index: string]: string } = {
  log: "日志",
  port: "端口",
  proc: "进程",
  plugin: "插件",
  service: "服务",
  check: "巡检",
  init: "通用检查",
  custom: "个性化检查",
};
export const interval = [10, 20, 30, 40, 60, 120, 300, 600, 1800, 3600];
export const nameRule = {
  pattern: /^[\u4e00-\u9fa5a-zA-Z0-9\.\-\_]{0,128}$/,
  message: "名称只允许 英文数字 . - _",
};

export const menuData: { label: string; key: string; name: string }[] = [
  { label: "stree", key: "stree", name: "基于服务树节点" },
  { label: "lvs", key: "lvs", name: "基于LVS" },
  { label: "manual", key: "manual", name: "基于手工配置" },
  { label: "url", key: "url", name: "基于HTTP接口" },
  { label: "stark", key: "stark", name: "STARK容器" },
];

export const menu: Record<string, string> = {
  strees: "基于服务树节点",
  lvses: "基于LVS",
  manuals: "基于手工配置",
  urls: "基于HTTP接口",
  starks: "STARK容器",
};
